/** 
* 路线
* @author  jiwf 
* @date 创建时间：2016年8月27日 下午5:36:57 
* @version 1.0 
* @since  
*  一个目的地，可能有不同的线路，一条线路有不同的出发时间，不同的出发时间有不同的旅行团
*/
package com.xbstar.bean;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;

import com.xbstar.tools.Timer;

@Entity
public class RouteInfo {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@NotNull
	private String name;
	/**
	 * 线路类型
	 */
	private String type;
	/**
	 * 线路花费，单位：人民币
	 */
	private Double cost;
	/**
	 * 费用简介
	 */
	private String costDesc;
	/**
	 * 线路图片
	 */
	private String affixBelongTo;
	/**
	 * 退订政策
	 */
	private String backBookDesc;
	/**
	 * 目的地编号
	 */
	private Long destinationId;
	/**
	 * 路线地点描述，如二道桥-三里屯-碾子沟-八公
	 */
	private String tripRouteInfo;
	
	private String tripBelongTo;
	/**
	 * 线路简介，可以介绍里面的风景
	 */
	private String description;
	/**
	 * 视频地址
	 */
	private String videoUrl;
	public String getLeaderName() {
		return leaderName;
	}

	public void setLeaderName(String leaderName) {
		this.leaderName = leaderName;
	}

	/**
	 * 领队
	 */
	private String leaderName;
	private Long leaderId;
	private String createdTime;
	private String updatedTime;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(String createdTime) {
		this.createdTime = createdTime;
	}

	public String getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(String updatedTime) {
		if (this.updatedTime == null) {
			this.updatedTime = updatedTime;
		}
	}

	public RouteInfo() {
		this.createdTime = Timer.getCurrentString();
		this.updatedTime = this.createdTime;
	}

	public Long getDestinationId() {
		return destinationId;
	}

	public void setDestinationId(Long destinationId) {
		this.destinationId = destinationId;
	}

	public String getTripRouteInfo() {
		return tripRouteInfo;
	}

	public void setTripRouteInfo(String tripRouteInfo) {
		this.tripRouteInfo = tripRouteInfo;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTripBelongTo() {
		return tripBelongTo;
	}

	public void setTripBelongTo(String tripBelongTo) {
		this.tripBelongTo = tripBelongTo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Double getCost() {
		return cost;
	}

	public void setCost(Double cost) {
		this.cost = cost;
	}

	public String getCostDesc() {
		return costDesc;
	}

	public void setCostDesc(String costDesc) {
		this.costDesc = costDesc;
	}

	public String getBackBookDesc() {
		return backBookDesc;
	}

	public void setBackBookDesc(String backBookDesc) {
		this.backBookDesc = backBookDesc;
	}

	public String getVideoUrl() {
		return videoUrl;
	}

	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}

	public Long getLeaderId() {
		return leaderId;
	}

	public void setLeaderId(Long leaderId) {
		this.leaderId = leaderId;
	}

	public String getAffixBelongTo() {
		return affixBelongTo;
	}

	public void setAffixBelongTo(String affixBelongTo) {
		this.affixBelongTo = affixBelongTo;
	}
}
